#import "PreferencesController.h"
#import "UnknownNumberCategory.h"

@implementation PreferencesController
- (IBAction)myAction1:(id)sender {
    NSLog(@"%@",[[self idxset] description]);
}

@synthesize unknownNumberCats = _unknownNumberCats;
@synthesize currentlySelectedCategory = _currentlySelectedCategory;
@synthesize idxset = _idxset;

-(void)awakeFromNib {
	NSMutableArray* cats = [NSMutableArray array];
	UnknownNumberCategory *cat= [[UnknownNumberCategory alloc] init];
	cat.displayName = @"Home";
	cat.xmlType = @"home";
	[cats addObject:cat];
	
	cat = [[UnknownNumberCategory alloc]init];
	cat.displayName = @"Mobile";
	cat.xmlType = @"mobile";
	[cats addObject:cat];
	
	cat = [[UnknownNumberCategory alloc]init];
	cat.displayName=@"Office";
	cat.xmlType=@"work";
	[cats addObject:cat];
	
	self.unknownNumberCats = cats;
}
@end
